package org.example;

import java.awt.*;

public class Test {
    public static void main(String[] args) {
        Circle circle = new Circle(5);
        System.out.println("圆形名称:"+circle.getName());
        System.out.println("圆形面积:"+circle.calculateArea());
        System.out.println("圆形周长:"+circle.calculatePerimeter());

        System.out.println("-----------------");

        Rectangle rectangle  = new  Rectangle(5,3);
        System.out.println("矩形形名称:"+rectangle.getName());
        System.out.println("矩形面积:"+rectangle.calculateArea());
        System.out.println("矩形周长:"+rectangle.calculatePerimeter());


    }
}
